
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('CakePHP: the rapid development php framework:'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		//echo $this->Html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('style');
                echo $this->Html->css('validationEngine.jquery');
                echo $this->Html->script('jquery');
                echo $this->Html->script('languages/jquery.validationEngine-en');
                echo $this->Html->script('jquery.validationEngine');
		echo $scripts_for_layout;
	?>
</head>
<body>
	<div id="header">
            <div class="wrapper">
                    <div class="form-search">
                    <form>
                        <input name="q" placeholder="Search Questions and Topics">
                    </form>
                </div>
                <div class="main-menu">
                    <?php
                        if ($this->Session->check('Auth.User')) {
                            echo $this->element('users/user_menu');
                        } else {
                            echo $this->element('users/guest_menu');
                        }
                    ?>
                </div>
            </div>
           
    </div>
    <div id="content" class="wrapper">
		
		<div id="main_body">
                        <?php echo $this->Session->flash(); ?>

			<?php echo $content_for_layout; ?>
		</div>
                <div id="sidebar">
		</div>
    </div>
    <div id="footer">
            <div class="wrapper">
                <p>&copy; <?php echo date('Y') ?> Question Wall</p>
            </div>
    </div>
        <?php echo $this->Js->writeBuffer(); ?>
	<?php echo $this->element('sql_dump'); ?>
    
</body>
</html>